<!-- 改为jsp后 如有需要可按照以下方式include file  -->
<!--<%@include file="Inc/Conn.jsp" %>-->
<!--<%@include file="Inc/config.jsp" %>-->
<!--<%@include file="Inc/Md5.jsp" %>-->
<!--<%@include file="Inc/Function.jsp" %>-->

<!-- <%
dim Action,UserName,FoundErr,ErrMsg
dim rsUser,sqlUser
Action=trim(request("Action"))
UserName=trim(request("UserName"))
if Action="" and session("UserName")="" then
	response.redirect "UserServer.asp"
end if
if Action="Modify" and UserName<>"" then
	Set rsUser=Server.CreateObject("Adodb.RecordSet")
	sqlUser="select * from [User] where UserName='" & UserName & "'"
	rsUser.Open sqlUser,conn,1,3
	if rsUser.bof and rsUser.eof then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>找不到指定的用户！</li>"
	else
		dim OldPassword,Password,PwdConfirm
		OldPassword=trim(request("OldPassword"))
		Password=trim(request("Password"))
		PwdConfirm=trim(request("PwdConfirm"))
		if OldPassword="" then
			FoundErr=True
			ErrMsg=ErrMsg & "<br><li>请输入旧密码！</li>"
		else
			if Instr(OldPassword,"=")>0 or Instr(OldPassword,"%")>0 or Instr(OldPassword,chr(32))>0 or Instr(OldPassword,"?")>0 or Instr(OldPassword,"&")>0 or Instr(OldPassword,";")>0 or Instr(OldPassword,",")>0 or Instr(OldPassword,"'")>0 or Instr(OldPassword,",")>0 or Instr(OldPassword,chr(34))>0 or Instr(OldPassword,chr(9))>0 or Instr(OldPassword,"")>0 or Instr(OldPassword,"$")>0 then
				errmsg=errmsg+"<br><li>旧密码中含有非法字符</li>"
				founderr=true
			else
				if md5(OldPassword)<>rsUser("Password") then
					FoundErr=True
					ErrMsg=ErrMsg & "<br><li>你输入的旧密码不对，没有权限修改！</li>"
				end if
			end if
		end if
		if strLength(Password)>12 or strLength(Password)<6 then
			founderr=true
			errmsg=errmsg & "<br><li>请输入新密码(不能大于12小于6)。</li>"
		else
			if Instr(Password,"=")>0 or Instr(Password,"%")>0 or Instr(Password,chr(32))>0 or Instr(Password,"?")>0 or Instr(Password,"&")>0 or Instr(Password,";")>0 or Instr(Password,",")>0 or Instr(Password,"'")>0 or Instr(Password,",")>0 or Instr(Password,chr(34))>0 or Instr(Password,chr(9))>0 or Instr(Password,"")>0 or Instr(Password,"$")>0 then
				errmsg=errmsg+"<br><li>新密码中含有非法字符</li>"
				founderr=true
			end if
		end if
		if PwdConfirm="" then
			FoundErr=True
			ErrMsg=ErrMsg & "<br><li>请输入确认密码！</li>"
		else
			if PwdConfirm<>Password then
				FoundErr=True
				ErrMsg=ErrMsg & "<br><li>确认密码与新密码不一致！</li>"
			end if
		end if
		if FoundErr<>true then
			rsUser("Password")=md5(Password)
			rsUser.update
		end if
	end if
	rsUser.close
	set rsUser=nothing
	if FoundErr=True then
		call WriteErrMsg()
	else
	    response.write"<SCRIPT language=JavaScript>alert('成功修改密码！');"
        response.write"javascript:history.go(-1)</SCRIPT>"
	end if
else
%> -->

<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Head.jsp"%>-->
<html>
<body>
<table width="970" height="17" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="imgbys/top17.gif"></td>
  </tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="4"></td>
  </tr>
</table>
<table width="970" height="416" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="264" valign="top"><!-- #include file="Loop.html" -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
        <table width="264" height="24" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFCEB">
          <tr>
            <td width="14"><img src="imgbys/top19.gif" width="10" height="6" /></td>
              <td width="71" valign="middle" class="ab21">服务中心</td>
              <td width="179" valign="middle" class="ab3">SERVICE CENTER </td>
          </tr>
      </table>
        <table width="264" height="8" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="imgbys/top4.gif" width="264" height="8" /></td>
          </tr>
      </table>
        <table width="264" height="111" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="111" bgcolor="#F6F6F6"><table width="80%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
              </table>
                  <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEdit.html" class="linkleft1">修改会员资料</a> </td>
                    </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEditPwd.html" class="linkleft1">修改会员密码</a></td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="FeedbackMember.html" class="linkleft1">站内留言中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserLogout.html?Action=Ch" class="linkleft1">退出会员中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="48" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td></td>
                  </tr>
              </table></td>
          </tr>
        </table></td><td width="7" valign="top"></td>
    <td width="1" valign="top" bgcolor="#EAE5CF"></td>
    <td width="6" valign="top"></td>
    <td valign="top"><span id="tb_A101">
      <!--------------------显示最新产品的子程序结束--------------------->
      </span>
        <table width="692" height="23" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10"><img src="imgbys/top19.gif" width="10" height="6" /></td>
            <td width="68" valign="middle" class="ab2">客户服务</td>
            <td width="452" valign="middle" class="ab3">CUSTOMER SERVICE</td>
            <td width="162" class="ab1">您现在的位置 &gt;&gt; 客户服务</td>
          </tr>
        </table>
      <table width="692" height="4" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td background="imgbys/top18.gif"></td>
          </tr>
      </table>
      <table width="98%" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="15"></td>
          </tr>
      </table>
      <form action="UserEditPwd.html" method="post" name="Form1" id="Form1">
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#E3E3E3">
          <tr align="center" bgcolor="#FFFFFF"  >
            <td height="40" colspan="2"><font color="#FFffff" class="font14"><b>修改</b></font><font color="#FF6600" class="font14"><b>修改用户密码</b></font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="266" height="45" align="right">用 户 名：</td>
            <td width="397"><!-- <%=session("UserName")%> -->
                <input name="UserName" type="hidden" value="" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="266" height="45" align="right">旧 密 码：</td>
            <td><input   type="password" maxlength="16" size="30" name="OldPassword" />
            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="266" height="45" align="right">新 密 码：</td>
            <td><input   type="password" maxlength="16" size="30" name="Password" />
            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="266" height="45" align="right">确认密码：</td>
            <td><input name="PwdConfirm"   type="password" id="PwdConfirm" size="30" maxlength="16" />
            </td>
          </tr>
          <tr align="center" bgcolor="#FFFFFF">
            <td height="40" colspan="2"><input name="Action" type="hidden" id="Action" value="Modify" />
                <input name="Submit"   type="submit" id="Submit" value=" 保 存 " />
            </td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Inc/Foot.jsp"%>-->
</BODY></HTML>
<!-- <%
end if
call CloseConn()
%> -->